#include<stdio.h>
#include<malloc.h>
#include"..\Link_List\zyf_link_List.h"

void del_min(LNode *L)
{
	LNode *p = L -> next;
	LNode *pre = L;
	LNode *minp = p;
	LNode *preminp = pre;

	while (p != NULL)
	{
		if (p -> data < minp -> data)
		{
			preminp = pre;
			pre = p;
			minp = p;
			p = p -> next;
		}

		pre = p;
		p = p -> next;
	}

	preminp -> next = minp -> next;
	free(minp);
}